package com.csdj.t301.util;

import java.util.UUID;

/**生成随机字符串
 * author:cloud
 * date:2021/4/12 0012
 **/
public class RandomUtil {

    /**
     * 生成用于登录校验的token
     * @return
     */
    public static String getToken(){
        String s = UUID.randomUUID().toString();
        System.out.println(s);
        return s.replaceAll("-","");
    }


    public static void main(String[] args) {
        System.out.println(getToken());
    }
}
